import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    imginfo: {
      url: null,
      type: 0,
    },
    signurl: null,
  },
  getters: {},
  mutations: {
    setImgInfo(state, info) {
      state.imginfo = {
        url: info.url,
        type: info.type,
      };
    },
    setSign(state, url) {
      state.signurl = url;
    },
  },
  actions: {},
  modules: {},
});
